package com.yunban.project.template.controller;

import com.yunban.project.template.model.dto.AIArticleFormatReq;
import com.yunban.project.template.service.ArticleAIFormatService;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import net.lab1024.sa.base.common.annoation.NoNeedLogin;
import net.lab1024.sa.base.common.domain.ResponseDTO;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author: lijiajun
 * @date: 2025-03-06
 * @version: 1.0
 */
@RestController
@RequestMapping("/article/ai/format")
public class ArticleAIFormatController {

    @Resource
    private ArticleAIFormatService articleAIFormatService;

//    @NoNeedLogin
//    @PostMapping
//    @Operation(summary = "AI文章格式化")
//    public ResponseDTO<String> format(@RequestPart("req") AIArticleFormatReq req, @RequestPart("file") MultipartFile file) {
//        return ResponseDTO.ok(this.articleAIFormatService.format(req, file));
//    }
}
